package com.xushu.service;


// cglib方式
//public class UserServiceProxy extends UserService {
 public class UserServiceProxy implements IUserService {

	 Object target;

	public void test() {

		try {
			// 拿到Transactional属性
			// Connection.autoCommit(false)

			// 反射 调用目标类
			//target.getClass().getMethod().invoke()

		}
		catch (Exception e){
			//Connection.rollback
		}
		// Connection.提交事务
	}

	public void test2() {

	}
}
